package basic

import (
	"fmt"
	"unicode/utf8"
)

func main() {
	str := "Yes我爱学习"
	for i, v := range []rune(str) {
		fmt.Printf("%d ,%c\n",i, v)
	}
	n := utf8.RuneCountInString(str)
	fmt.Println(n)
}
